home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / ShareDisk 2.2.2 / Utilities / CalConvert 1.2.3 FAT / CalConvert FAT / CalConvert FAT.rsrc / TEXT_5000.txt < prev    next >
Encoding:
Text File  |  1995-04-06  |  6.1 KB  |  114 lines

  1. Alessandro Levi Montalcini
  2. C.so Re Umberto 10
  3. 10121 Torino
  4. Italy
  5. e-mail: LMontalcini@pmn.it
  6. anonymous ftp: //ftp.alpcom.it/software/mac/LMontalcini
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. CalConvert 1.2.3 documentation - April 1995
  14.  
  15. ‚Ä¢ Shareware: $5
  16. ‚óä  This utility is distributed as shareware: if you like it please honor the shareware system by sending $5 to the author at the address above. Since cashing international cheques is very expensive, please send cash only (U.S. dollars are best, but any other currency is fine).
  17. ‚óä  If you work on the Macintosh, there are many things you can send me instead of the money. Here are some suggestions: original software (but don't send any shareware/freeware unless you're the author), books or computer-related magazines (any free issue or subscription is welcome), CD-ROMs, any piece of new or used hardware, or anything else you've created.
  18. ‚óä  There's still another thing you could do: I'll finish my physics studies sometime in 1996 and I'm looking for a one-year job as a programmer (or maybe a scientist?) outside of Italy. Let me know if you have anything to offer.
  19. ‚óä  If you can't afford any of the above an e-mail, a postcard or a letter is welcome. I speak English, French and Italian. Please forgive me if I don't answer to all of your letters - I am often overloaded with my school work.
  20.  
  21. ‚Ä¢ Introduction
  22. ‚óä  CalConvert is a small shareware utility that does integer arithmetic calculations and converts integer values to different bases (decimal, hexadecimal, binary, octal or any custom base between 2 and 32) or to an OSType (a sequence of four ASCII characters). The conversion may be signed or unsigned (you can always enter a signed value, it gets converted to unsigned if needed); the result may be interpreted either as a word (2 bytes) or as a long word (4 bytes). The Return and Enter keys start the conversion; Tab, shift-Tab and the four arrow keys have their usual meaning.
  23.  
  24. ‚Ä¢ Configuration
  25. ‚óä  Choosing the "Fields" item from the "Options" menu brings up a configuration dialog that can be used to fully customize CalConvert. CalConvert can show up to 8 fields; each field contains either a mathematical expression, a sequence of 1 to 4 characters (OSType) or an integer number in any base from 2 to 32.
  26.  
  27. ‚Ä¢ The calculator
  28. ‚óä  You may enter mathematical or logical expressions in fields labeled "Math" (things like "(12*(128-$20))<<2+2^8"); the result is shown in all the other fields of the window when you press Return. If the expression can't be parsed correctly, you hear a beep and all other fields change to zero. The next paragraphs explain the syntax and operators you may use in your mathematical expressions.
  29.  
  30. ‚Ä¢ Syntax of the math field
  31. ‚óä  xxx (x=0-9) is a number
  32. ‚óä  $xxx (x=0-9,A-F) is an hexadecimal number
  33. ‚óä  -xxx, -$xxx, $-xxx are negative numbers
  34. ‚óä  '(' and ')' can be used as usual, nesting allowed
  35. ‚óä  spaces are allowed between numbers and operators
  36. ‚óä  no spaces are allowed inside numbers or operators
  37. ‚óä  all numbers are interpreted as 32-bit signed integers
  38.  
  39. ‚Ä¢ Order of operators
  40. ‚óä  Operators in the upper lines are calculated first.
  41. ‚óä  Operators in the same line are calculated sequentially.
  42.     
  43.    ^   **
  44.    *   /   :   %   <<  >>
  45.    &   |   \   AND OR  XOR
  46.    +   -
  47.    =   ==  !=  <>  <   >   <=  >=
  48.  
  49. ‚Ä¢ Arithmetic operators
  50.  
  51.   +     add
  52.   -     subtract
  53.   *     multiply
  54.   /     divide
  55.   :     divide
  56.   %     remainder
  57.   ^     power
  58.   **    power
  59.  
  60. ‚Ä¢ Logical operators
  61.     (return 1 if true, 0 if false)
  62.  
  63.   =     equal to
  64.   ==    equal to
  65.   !=    not equal to
  66.   <>    not equal to
  67.   <     less than
  68.   >     greater than
  69.   <=    less or equal
  70.   >=    greater or equal
  71.  
  72. ‚Ä¢ Bitwise operators
  73.  
  74.   <<    bit shift left
  75.   >>    bit shift right
  76.   &     bit and
  77.   AND   bit and
  78.   and   bit and
  79.   |     bit or
  80.   OR    bit or
  81.   or    bit or
  82.   \     exclusive or
  83.   XOR   exclusive or
  84.   xor   exclusive or
  85.  
  86. ‚Ä¢ Version history
  87. ‚óä  1.2.3 - CalConvert now refuses exponents larger than 32.
  88. ‚óä  1.2.2 - Made the fields dialog movable.
  89. ‚óä  1.2.1 - Cleaned up the code and updated documentation.
  90. ‚óä  1.2 - Recompiled as a fat binary, runs native on Power Macs.
  91. ‚óä  1.1 - Removed System 7 dependance and custom window definition.
  92. ‚óä  1.06 - Added online help, changed menu keys to follow Apple guidelines.
  93. ‚óä  1.05 - Fixed incoherent behavior of the "Fields" dialog.
  94. ‚óä  1.04 - Changed name to CalConvert.
  95. ‚óä  1.03 - First shareware version with arithmetic parser.
  96. ‚óä  1.02 - First public release as QuickConvert.
  97. ‚óä  1.01 - Menus added, still looks like a quick hack.
  98. ‚óä  1.0 - Written for my personal use only, very poor interface.
  99.  
  100. ‚Ä¢ Distribution
  101. ‚óä  CalConvert is ¬©1994-95 Alessandro Levi Montalcini. It can be freely distributed as long as it is not modified and there‚Äôs no charge for it, but it may not be included in any commercial package without my consent.
  102. ‚óä  You may find the latest version of all my shareware programs by anonymous ftp to ftp.alpcom.it, inside the /software/mac/LMontalcini directory. The complete ShareDisk package, which contains all my stuff and can be registered at a very low price, is also available there.
  103. ‚óä  All online services and bulletin boards may make it available to their users at no charge other than the normal connection fees.
  104. ‚óä  All non-profit user groups may distribute it at no charge.
  105. ‚óä  All magazines may publish it on floppy disk without asking me first, as long as I get a copy of the issue containing my software.
  106. ‚óä  All CD-ROM shareware collections and CD-ROM magazines may include it without my prior consent, as long as I get either a copy of the CD-ROM or an offer to buy the CD-ROM at a discounted price.
  107. ‚óä  All redistribution companies such as Educorp may distribute it, as long as I get a copy of each media containing my software and a catalog of the company‚Äôs offerings (where applicable).
  108.  
  109. ‚Ä¢ Disclaimer
  110. ‚óä  CalConvert shouldn‚Äôt cause any damage, but you‚Äôre using it at your own risk. As an independent software developer, I can make no warranties whatsoever on it.
  111.  
  112. ‚Ä¢ Have fun!
  113. ‚óä  And don't forget to $$$ send your contribution $$$ so that more cool utilities will see the light in the near future, at the low-low-low costs of shareware.
  114.